package com.clqteam.controller;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.clqteam.model.Employee;
import com.clqteam.service.EmployeeLXGService;
import com.clqteam.serviceimpl.EmployeeLXGServiceImpl;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
/**
 * 供应商增改下拉菜单controller
 * @author Administrator
 *
 */
public class Combobox_insertController extends HttpServlet{
	EmployeeLXGService els=new EmployeeLXGServiceImpl();
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		doPost(req, resp);
	}
	
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		resp.setCharacterEncoding("utf8");
		req.setCharacterEncoding("utf8");
		
		PrintWriter pw=resp.getWriter();
		JSONObject jo=els.selectEid();
		
		pw.write(jo.toString());
		
		pw.flush();
		pw.close();
	}
}
